<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SqlMan - Java Database Helper Library</title>
    <style>
        :root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --gray-light: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    margin: 0 0.5rem;
}

.primary {
    background: white;
    color: var(--primary-color);
}

.secondary {
    border: 2px solid white;
    color: white;
}

section {
    padding: 5rem 10%;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 0.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.design-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.code-block {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

footer {
    background: var(--gray-light);
    padding: 2rem 5%;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    section {
        padding: 3rem 5%;
    }
}

    </style>
</head>
<body>
<header>
    <nav>
        <div class="logo">SqlMan</div>
        <div class="nav-links">
            <a href="#features">Features</a>
            <a href="#design">Design</a>
            <a href="https://sqlman.ajaxjs.com/docs">Docs</a>
            <a href="https://github.com/lightweight-component/SqlMan">GitHub</a>
        </div>
    </nav>
    <div class="hero">
        <h1>SqlMan</h1>
        <p class="subtitle">A Lightweight Java Database Helper Library</p>
        <div class="cta-buttons">
            <a href="#quickstart" class="btn primary">Quick Start</a>
            <a href="https://sqlman.ajaxjs.com/docs" class="btn secondary">Documentation</a>
        </div>
    </div>
</header>

<section id="features">
    <h2>Key Features</h2>
    <div class="feature-grid">
        <div class="feature-card">
            <h3>Familiar Syntax</h3>
            <pre><code>sql().input('SELECT * FROM table WHERE id=?', 1).query()</code></pre>
            <p>Compatible with Spring JdbcTemplate & Apache DBUtils</p>
        </div>
        <div class="feature-card">
            <h3>Multiple SQL Styles</h3>
            <p>Support for XML Mappers, Annotations, and Direct SQL</p>
        </div>
        <div class="feature-card">
            <h3>Auto Bean Mapping</h3>
            <p>Automatic JavaBean population from ResultSets</p>
        </div>
        <div class="feature-card">
            <h3>Zero SQL Mode</h3>
            <p>Built-in CRUD operations without writing SQL</p>
        </div>
    </div>
</section>

<section id="design">
    <h2>Design Philosophy</h2>
    <div class="design-principles">
        <div class="principle">
            <h3>Small</h3>
            <p>Simple philosophy, easy to understand the whole package quickly</p>
        </div>
        <div class="principle">
            <h3>Transparent</h3>
            <p>No magic behind the scenes, straightforward execution</p>
        </div>
        <div class="principle">
            <h3>Fast</h3>
            <p>Minimal object creation, efficient database operations</p>
        </div>
    </div>
</section>

<section id="quickstart">
    <h2>Quick Start</h2>
    <div class="code-block">
            <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.ajaxjs&lt;/groupId&gt;
    &lt;artifactId&gt;sqlman&lt;/artifactId&gt;
    &lt;version&gt;1.2&lt;/version&gt;
&lt;/dependency&gt;</code></pre>
    </div>
</section>

<footer>
    <div class="footer-content">
        <div class="footer-links">
            <a href="https://sqlman.ajaxjs.com">Website</a>
            <a href="https://sqlman.ajaxjs.com/docs">Documentation</a>
            <a href="https://github.com/lightweight-component/SqlMan">GitHub</a>
        </div>
        <p>Licensed under GNU GENERAL PUBLIC LICENSE v3.0</p>
    </div>
</footer>
</body>
</html>